package com.bw.service;

import com.bw.dao.GmallDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GmallServiceImp implements GmallService{
    //注入持久层
    @Autowired
    GmallDao gmallDao;

    //1：按照省份展示总成交额指标
    @Override
    public List<Map> findProTotal(String nowDate) {
        return gmallDao.findProTotal(nowDate);
    }

    //2：按品牌展示销售排行
    @Override
    public List<Map> findTradTotal(String nowDate) {
        return gmallDao.findTradTotal(nowDate);
    }

    //3：按各品类展示销售占比
    @Override
    public List<Map> findCatoTotal(String nowDate) {
        return gmallDao.findCatoTotal(nowDate);
    }

    //4：根据存储过程总成交金额的
    @Override
    public List<Map> findTotal(String nowDate) {
        return gmallDao.findTotal(nowDate);
    }
}
